﻿
using S.Authorization.Common.Dto;
using S.Authorization.Domain.Model.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.Authorization.Infrastructure.Interface.User
{
    public interface IUserModellRepository: IBaseRepository<UsersModel>
    {
        /// <summary>
        /// 人员管理显示
        /// </summary>
        /// <param name="userName">员工姓名</param>
        /// <param name="departmentId">所在部门</param>
        /// <param name="state">员工状态</param>
        /// <returns></returns>
        Task<List<GetUserListDto>> GetUserList(string userName, int departmentId, int state);

        /// <summary>
        /// 添加用户并给用户设置角色
        /// </summary>
        /// <param name="user">用户信息</param>
        /// <param name="roleId">角色</param>
        /// <returns></returns>
        Task<bool> AddUserAndRole(UsersModel user,int roleId);
    }
}
